package com.parking.mgr.useraccount.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.parking.mgr.useraccount.model.entity.BasicRoleMenuEntity;
import com.parking.mgr.useraccount.model.param.BasicRoleMenuParam;
import com.parking.mgr.useraccount.model.vo.BasicRoleMenuVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.List;

/**
 * @ClassName BasicRoleMenuService
 * @Description 角色功能菜单service接口
 * @Auther: shilintao
 * @Date: 2023/5/30
 */
public interface BasicRoleMenuService extends IService<BasicRoleMenuEntity> {
    /**
     * 角色菜单列表
     *
     * @param basicRoleMenuParam
     * @return
     */
    IPage<BasicRoleMenuVO> list(BasicRoleMenuParam basicRoleMenuParam);

    /**
     * 角色菜单列表(启用状态)
     *
     * @param basicRoleMenuParam
     * @return
     */
    IPage<BasicRoleMenuVO> listEnable(BasicRoleMenuParam basicRoleMenuParam);

    /**
     * 添加角色菜单
     *
     * @param basicRoleMenuParam
     */
    void add(BasicRoleMenuParam basicRoleMenuParam);

    /**
     * 删除角色菜单
     *
     * @param ids
     */
    void delete(Collection<String> ids);

    /**
     * 编辑角色菜单
     *
     * @param basicRoleMenuParam
     */
    void edit(BasicRoleMenuParam basicRoleMenuParam);

    /**
     * 获取已分配的菜单
     *
     * @param fkBasicRoleId
     * @return
     */
    List<String> getAssignMenuIdListByRoleId(String fkBasicRoleId);

    /**
     * 获取用户角色列表获取角色功能菜单
     *
     * @param userRoleIds
     * @return
     */
    List<String> getRoleUserMenuList(List<String> userRoleIds);

    /**
     * 根据用户角色获取菜单列表
     *
     * @param roleId
     * @return
     */
    List<String> getRoleMenuListByRoleId(String roleId);

}
